.class Lcom/hyphenate/chat/EMChatRoomManager$6;
.super Lcom/hyphenate/chat/adapter/EMAChatRoomManagerListener;


# instance fields
.field final synthetic this$0:Lcom/hyphenate/chat/EMChatRoomManager;


# direct methods
.method constructor <init>(Lcom/hyphenate/chat/EMChatRoomManager;)V
    .locals 0

    iput-object p1, p0, Lcom/hyphenate/chat/EMChatRoomManager$6;->this$0:Lcom/hyphenate/chat/EMChatRoomManager;

    invoke-direct {p0}, Lcom/hyphenate/chat/adapter/EMAChatRoomManagerListener;-><init>()V

    return-void
.end method


# virtual methods
.method public onLeaveChatRoom(Lcom/hyphenate/chat/adapter/EMAChatRoom;I)V
    .locals 6

    invoke-static {}, Lcom/hyphenate/chat/EMClient;->getInstance()Lcom/hyphenate/chat/EMClient;

    move-result-object v0

    invoke-virtual {v0}, Lcom/hyphenate/chat/EMClient;->chatManager()Lcom/hyphenate/chat/EMChatManager;

    move-result-object v0

    iget-object v0, v0, Lcom/hyphenate/chat/EMChatManager;->caches:Ljava/util/Map;

    invoke-virtual {p1}, Lcom/hyphenate/chat/adapter/EMAChatRoom;->getId()Ljava/lang/String;

    move-result-object v1

    invoke-interface {v0, v1}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v0, p0, Lcom/hyphenate/chat/EMChatRoomManager$6;->this$0:Lcom/hyphenate/chat/EMChatRoomManager;

    # getter for: Lcom/hyphenate/chat/EMChatRoomManager;->chatRoomListeners:Ljava/util/List;
    invoke-static {v0}, Lcom/hyphenate/chat/EMChatRoomManager;->access$000(Lcom/hyphenate/chat/EMChatRoomManager;)Ljava/util/List;

    move-result-object v1

    monitor-enter v1

    :try_start_0
    iget-object v0, p0, Lcom/hyphenate/chat/EMChatRoomManager$6;->this$0:Lcom/hyphenate/chat/EMChatRoomManager;

    # getter for: Lcom/hyphenate/chat/EMChatRoomManager;->chatRoomListeners:Ljava/util/List;
    invoke-static {v0}, Lcom/hyphenate/chat/EMChatRoomManager;->access$000(Lcom/hyphenate/chat/EMChatRoomManager;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :goto_0
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_1

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/hyphenate/EMChatRoomChangeListener;

    if-nez p2, :cond_0

    invoke-virtual {p1}, Lcom/hyphenate/chat/adapter/EMAChatRoom;->getId()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {p1}, Lcom/hyphenate/chat/adapter/EMAChatRoom;->getName()Ljava/lang/String;

    move-result-object v4

    const-string/jumbo v5, ""

    invoke-interface {v0, v3, v4, v5}, Lcom/hyphenate/EMChatRoomChangeListener;->onMemberKicked(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    :catchall_0
    move-exception v0

    monitor-exit v1
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v0

    :cond_0
    :try_start_1
    invoke-virtual {p1}, Lcom/hyphenate/chat/adapter/EMAChatRoom;->getId()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {p1}, Lcom/hyphenate/chat/adapter/EMAChatRoom;->getName()Ljava/lang/String;

    move-result-object v4

    invoke-interface {v0, v3, v4}, Lcom/hyphenate/EMChatRoomChangeListener;->onChatRoomDestroyed(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    :cond_1
    monitor-exit v1
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    return-void
.end method

.method public onMemberJoinedChatRoom(Lcom/hyphenate/chat/adapter/EMAChatRoom;Ljava/lang/String;)V
    .locals 4

    iget-object v0, p0, Lcom/hyphenate/chat/EMChatRoomManager$6;->this$0:Lcom/hyphenate/chat/EMChatRoomManager;

    # getter for: Lcom/hyphenate/chat/EMChatRoomManager;->chatRoomListeners:Ljava/util/List;
    invoke-static {v0}, Lcom/hyphenate/chat/EMChatRoomManager;->access$000(Lcom/hyphenate/chat/EMChatRoomManager;)Ljava/util/List;

    move-result-object v1

    monitor-enter v1

    :try_start_0
    iget-object v0, p0, Lcom/hyphenate/chat/EMChatRoomManager$6;->this$0:Lcom/hyphenate/chat/EMChatRoomManager;

    # getter for: Lcom/hyphenate/chat/EMChatRoomManager;->chatRoomListeners:Ljava/util/List;
    invoke-static {v0}, Lcom/hyphenate/chat/EMChatRoomManager;->access$000(Lcom/hyphenate/chat/EMChatRoomManager;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :goto_0
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/hyphenate/EMChatRoomChangeListener;

    invoke-virtual {p1}, Lcom/hyphenate/chat/adapter/EMAChatRoom;->getId()Ljava/lang/String;

    move-result-object v3

    invoke-interface {v0, v3, p2}, Lcom/hyphenate/EMChatRoomChangeListener;->onMemberJoined(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    :catchall_0
    move-exception v0

    monitor-exit v1
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v0

    :cond_0
    :try_start_1
    monitor-exit v1
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    return-void
.end method

.method public onMemberLeftChatRoom(Lcom/hyphenate/chat/adapter/EMAChatRoom;Ljava/lang/String;)V
    .locals 5

    iget-object v0, p0, Lcom/hyphenate/chat/EMChatRoomManager$6;->this$0:Lcom/hyphenate/chat/EMChatRoomManager;

    # getter for: Lcom/hyphenate/chat/EMChatRoomManager;->chatRoomListeners:Ljava/util/List;
    invoke-static {v0}, Lcom/hyphenate/chat/EMChatRoomManager;->access$000(Lcom/hyphenate/chat/EMChatRoomManager;)Ljava/util/List;

    move-result-object v1

    monitor-enter v1

    :try_start_0
    iget-object v0, p0, Lcom/hyphenate/chat/EMChatRoomManager$6;->this$0:Lcom/hyphenate/chat/EMChatRoomManager;

    # getter for: Lcom/hyphenate/chat/EMChatRoomManager;->chatRoomListeners:Ljava/util/List;
    invoke-static {v0}, Lcom/hyphenate/chat/EMChatRoomManager;->access$000(Lcom/hyphenate/chat/EMChatRoomManager;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :goto_0
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/hyphenate/EMChatRoomChangeListener;

    invoke-virtual {p1}, Lcom/hyphenate/chat/adapter/EMAChatRoom;->getId()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {p1}, Lcom/hyphenate/chat/adapter/EMAChatRoom;->getName()Ljava/lang/String;

    move-result-object v4

    invoke-interface {v0, v3, v4, p2}, Lcom/hyphenate/EMChatRoomChangeListener;->onMemberExited(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    :catchall_0
    move-exception v0

    monitor-exit v1
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v0

    :cond_0
    :try_start_1
    monitor-exit v1
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    return-void
.end method
